package com.schoolgard.entitybean;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

@Entity
@Table(name = "HD_TYPE")
@SequenceGenerator (name="AUTO_ID", sequenceName="AUTO_ID")
public class HdType implements java.io.Serializable{
	
	private static final long serialVersionUID = 2997690992947646295L;

	@Id
	@Column(name = "ID", unique = true, nullable = false, precision = 10, scale = 0)
	@GeneratedValue (strategy=GenerationType.SEQUENCE, generator="AUTO_ID")
	private Long id;
	
	@Column(name = "NAME", length = 30)
	private String name;
	
	@Column(name = "ENABLE", precision = 1, scale = 0)
	private Boolean enable;
	
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Boolean getEnable() {
		return enable;
	}
	public void setEnable(Boolean enable) {
		this.enable = enable;
	}
	
	
	
}
